from modules import db
class student(db.Model):
    sid = db.Column(db.Integer, primary_key=True, autoincrement=True, nullable=False)
    sname = db.Column(db.String(10), nullable=False)
    sage = db.Column(db.Integer, nullable=False)
    score = db.Column(db.Integer, nullable=False)
    couid = db.Column(db.Integer, nullable=False)
    def __str__(self):
        return '%s %s %s %s'%(self.sid, self.sname, self.score, self.sage, self.couid)